package cn.schoolwow.quickdao.module.database.dml.json.service.insert;

import cn.schoolwow.quickdao.module.database.dml.json.flow.insert.common.ExecuteInsertJSONObjectFlow;
import cn.schoolwow.quickdao.module.database.dml.json.flow.insert.common.SetInsertJSONObjectParameterFlow;
import cn.schoolwow.quickdao.module.database.dml.json.flow.insert.common.SetInsertJSONObjectStatementFlow;
import cn.schoolwow.quickflow.QuickFlowExecutor;
import cn.schoolwow.quickflow.flow.CompositeBusinessFlow;

public class InsertJSONObjectCompositeBusiness implements CompositeBusinessFlow {
    @Override
    public void executeCompositeBusiness(QuickFlowExecutor quickFlowExecutor) {
        quickFlowExecutor.next(new SetInsertJSONObjectStatementFlow())
                .next(new SetInsertJSONObjectParameterFlow())
                .next(new ExecuteInsertJSONObjectFlow());
    }

    @Override
    public String name() {
        return "插入JSON对象复合流程";
    }

}
